#include "physicssimulatorview.h"
#include "../physicssimulatordialog.h"
#include <QPainter>

PhysicsSimulatorView::PhysicsSimulatorView(QWidget *parent) :
    QWidget(parent)
{
}

PhysicsSimulatorDialog *PhysicsSimulatorView::parentEditor() const
{
    PhysicsSimulatorDialog* result = qobject_cast<PhysicsSimulatorDialog*>(parent());
    Q_ASSERT(result);
    return result;
}

void PhysicsSimulatorView::paintEvent(QPaintEvent *)
{
    QPainter painter(this);
}
